package com.jfplugin.mail.core;

import com.jfplugin.mail.exception.BaseMailException;

/**
 * @author farmer
 */
public interface MailSender {

    /**
     * Send the given simple mail message.
     *
     * @param simpleMessage the message to send
     */
    void send(SimpleMailMessage simpleMessage) throws BaseMailException;

    /**
     * Send the given array of simple mail messages in batch.
     *
     * @param simpleMessages the messages to send
     */
    void send(SimpleMailMessage[] simpleMessages) throws BaseMailException;

}
